package gui;

import javax.swing.JTextField;

public class PanelIP extends javax.swing.JPanel {

	private static final long serialVersionUID = 1L;
	private javax.swing.JLabel labelBrokerIP;
	private javax.swing.JLabel labelClientIP;
	private javax.swing.JTextField textFieldBrokerIP;
	private javax.swing.JTextField textFieldClientIP;

	public PanelIP() {
		initComponents();
	}

	public JTextField getTextFieldBrokerIP() {
		return textFieldBrokerIP;
	}

	public JTextField getTextFieldClientIP() {
		return textFieldClientIP;
	}

	private void initComponents() {

		labelClientIP = new javax.swing.JLabel();
		labelBrokerIP = new javax.swing.JLabel();
		textFieldClientIP = new javax.swing.JTextField();
		textFieldBrokerIP = new javax.swing.JTextField();

		labelClientIP.setText("Client's IP :");

		labelBrokerIP.setText("Broker's IP :");

		textFieldClientIP.setEnabled(false);

		textFieldBrokerIP.setEnabled(false);

		javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
		this.setLayout(layout);
		layout.setHorizontalGroup(layout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						layout.createSequentialGroup()
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.LEADING)
												.addComponent(labelBrokerIP)
												.addComponent(labelClientIP))
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.LEADING)
												.addGroup(
														layout.createSequentialGroup()
																.addComponent(
																		textFieldClientIP,
																		javax.swing.GroupLayout.DEFAULT_SIZE,
																		126,
																		Short.MAX_VALUE)
																.addGap(1, 1, 1))
												.addComponent(
														textFieldBrokerIP,
														javax.swing.GroupLayout.Alignment.TRAILING,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														127, Short.MAX_VALUE))));
		layout.setVerticalGroup(layout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						layout.createSequentialGroup()
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(labelClientIP)
												.addComponent(
														textFieldClientIP,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE))
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(labelBrokerIP)
												.addComponent(
														textFieldBrokerIP,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE))));
	}
}
